<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 17-11-15
 * Time: 上午10:11
 */

namespace workin\models;


use common\models\credit_app\Member;
use yii\web\IdentityInterface;

class User extends Member implements IdentityInterface
{
    public static function findIdentity($id)
    {
        return static::findOne(['u_id'=>$id]);
    }

    public static function findIdentityByAccessToken($token, $type = null)
    {
        // TODO: Implement findIdentityByAccessToken() method.
    }

    public function getId()
    {
        return $this->u_id;
    }

    public function getAuthKey()
    {
        // TODO: Implement getAuthKey() method.
    }

    public function validateAuthKey($authKey)
    {
        // TODO: Implement validateAuthKey() method.
    }
}